#include "EventLoop.h"

learnmuduo::EventLoop* g_loop;

void print() {g_loop->quit();}  // 空函数

void threadFunc()
{
  g_loop->runAfter(1.0, print);
}

int main()
{
  learnmuduo::EventLoop loop;
  g_loop = &loop;
  muduo::Thread t(threadFunc);
  t.start();
  loop.loop();
}